package by.parfen.game.datamodel;

public class Game {

	Long id;
	String name;

	Player player1;
	Player player2;

	public Game(Long id, Player player1, Player player2) {
		super();
		this.id = id;
		this.player1 = player1;
		this.player2 = player2;
		this.name = player1.getName() + " vs. " + player2.getName();
	}

	public Long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public Player getPlayer1() {
		return player1;
	}

	public Player getPlayer2() {
		return player2;
	}

}
